var express = require('express');
var router = express.Router();

const roommateModel = require("../models/roommate.js");

router.get('/list', function(req, res, next) {
  // get req.query
  // post req.body
  roommateModel.find({} ,(err, doc) => {
    if(err) throw err;
    res.json({
      status: 0,
      result: doc
    })
  })
});

module.exports = router;